﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DNB.Data.LOCATION>>" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>View and interation page</title>
    <style type="text/css">
        .style1
        {
            width: 185px;
        }
    </style>
</head>
<body>
        <table style="width: 40%;" border="1px">
        <tr style="color: green; font-size: large">
            <td style="width: 140px;">Name</td>
            <td class="style1">Latitude</td>
            <td>Longitude</td>
        </tr>
        <% foreach (var item in Model)
           { %>
                <tr>
                    <td style="width: 140px;"><%:Html.DisplayFor(model => item.Name)%></td>
                    <td class="style1"><%:Html.DisplayFor(model => item.Y)%></td>
                    <td><%:Html.DisplayFor(model => item.X)%></td>
                     <td><%:Html.ActionLink("Edit","EditLatLgPage", new {id = item.Id}) %></td>
                     <td><%:Html.ActionLink("Delete", "DeleteLatLgPage", new {id = item.Id})%></td>
                </tr>
           <% } %>
           <%:Html.ActionLink("Insert","InsertLatLgPage") %>
     
    </table>
</body>
</html>
